package com.itheima.idea;

import java.util.Scanner;

public class Demo1 {
    public static void main(String[] args) {
        int[] arr1 = new int[6];
        arr1[0] = 18;
        arr1[1] = 20;
        arr1[2] = 30;
        arr1[3] = 50;
        arr1[4] = 70;
        arr1[5] = 55;
        int[] arr2 = arr1;
        arr2[0] = 35;
        arr2[3] = 112;


        System.out.println(arr1[0]);
        System.out.println(arr1[1]);
        System.out.println(arr1[2]);
        System.out.println(arr1[3]);
        System.out.println(arr1[4]);
        System.out.println(arr1[5]);
        System.out.println(arr2[6]);

    }
}
